import axios from "axios";

let http = axios.create({
  baseURL: "/api",
  timeout: 5000, //超时设置
  withCredentials: true
});

axios.interceptors.request.use(config => {
  return config;
});

axios.interceptors.response.use(config => {
  return config;
});

export default http;
